#include "../source/Server.hpp"

using func_t = std::function<void()>;
class Test 
{
public:
    Test(){std::cout << "构造" << std::endl;}
    void fun(){
        while(1){
            if (_test_callback){
                std::cout << "hahaha" << std::endl;
            }
            else {
                std::cout << "lueluelue" << std::endl;
            }
            sleep(1);
        }
    }
    ~Test(){std::cout << "析构" << std::endl;}
private:
    func_t _test_callback;
};


int main()
{
    Test t;
    t.fun();
    return 0;
}